'''
Created on 2024年7月23日

@author: Administrator
'''

from pathlib import Path
import subprocess


path = Path("C:/Users/Administrator/AppData/Roaming/Python/Python38/site-packages")
print(path)

for file in path.iterdir():
    name = file.name
    if '-' not in name:
        command = f"pip uninstall {name}"
        print(command)
        subprocess.call(command)
    


